/*
 * Created on 2005-10-9
 *
 */
package com.hd123.rumba.user;

import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.runtime.IBaseEntity;

/**
 * 角色 | 实体 | 接口类
 * <p>
 * 
 * BK = domain + code (state != VALUE_STATE_DELETED)
 * 
 * @author caili
 */
public interface IRole extends IBaseEntity {

  /** @deprecated */
  public static final String CAPTION_CLASS = CRole.CAPTION_CLASS;
  /** @deprecated */
  public static final String CAPTION_ROLE = CRole.CAPTION_ROLE;

  /** @deprecated */
  public static final String CAPTION_CODE = CRole.CAPTION_CODE;

  public String getCode() throws BusinessException;

  public void setCode(String code) throws BusinessException;

  /** @deprecated */
  public static final String CAPTION_NAME = CRole.CAPTION_NAME;

  public String getName() throws BusinessException;

  public void setName(String name) throws BusinessException;

  public Integer getRoleType() throws BusinessException;

  public void setRoleType(Integer roleType) throws BusinessException;

  /** @deprecated */
  public static final String CAPTION_REMARK = CRole.CAPTION_REMARK;

  public String getRemark() throws BusinessException;

  public void setRemark(String remark) throws BusinessException;

  public String getCodeName() throws BusinessException;

  public String getNameCode() throws BusinessException;

  public static final String PERMISSION_EDIT = "角色.编辑权";/* "角色.编辑"; */
  public static final String PERMISSION_VIEW = "角色.查看权";/* "角色.查看"; */

}
